package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbOfflineTaskDetailLogsMapper;
import com.ruoyi.system.domain.TbOfflineTaskDetailLogs;
import com.ruoyi.system.service.ITbOfflineTaskDetailLogsService;

/**
 * 离线包任务执行日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-09
 */
@Service
public class TbOfflineTaskDetailLogsServiceImpl implements ITbOfflineTaskDetailLogsService 
{
    @Autowired
    private TbOfflineTaskDetailLogsMapper tbOfflineTaskDetailLogsMapper;

    /**
     * 查询离线包任务执行日志
     * 
     * @param id 离线包任务执行日志主键
     * @return 离线包任务执行日志
     */
    @Override
    public TbOfflineTaskDetailLogs selectTbOfflineTaskDetailLogsById(Long id)
    {
        return tbOfflineTaskDetailLogsMapper.selectTbOfflineTaskDetailLogsById(id);
    }

    /**
     * 查询离线包任务执行日志列表
     * 
     * @param tbOfflineTaskDetailLogs 离线包任务执行日志
     * @return 离线包任务执行日志
     */
    @Override
    public List<TbOfflineTaskDetailLogs> selectTbOfflineTaskDetailLogsList(TbOfflineTaskDetailLogs tbOfflineTaskDetailLogs)
    {
        return tbOfflineTaskDetailLogsMapper.selectTbOfflineTaskDetailLogsList(tbOfflineTaskDetailLogs);
    }

    /**
     * 新增离线包任务执行日志
     * 
     * @param tbOfflineTaskDetailLogs 离线包任务执行日志
     * @return 结果
     */
    @Override
    public int insertTbOfflineTaskDetailLogs(TbOfflineTaskDetailLogs tbOfflineTaskDetailLogs)
    {
        tbOfflineTaskDetailLogs.setCreateTime(DateUtils.getNowDate());
        return tbOfflineTaskDetailLogsMapper.insertTbOfflineTaskDetailLogs(tbOfflineTaskDetailLogs);
    }

    /**
     * 修改离线包任务执行日志
     * 
     * @param tbOfflineTaskDetailLogs 离线包任务执行日志
     * @return 结果
     */
    @Override
    public int updateTbOfflineTaskDetailLogs(TbOfflineTaskDetailLogs tbOfflineTaskDetailLogs)
    {
        tbOfflineTaskDetailLogs.setUpdateTime(DateUtils.getNowDate());
        return tbOfflineTaskDetailLogsMapper.updateTbOfflineTaskDetailLogs(tbOfflineTaskDetailLogs);
    }

    /**
     * 批量删除离线包任务执行日志
     * 
     * @param ids 需要删除的离线包任务执行日志主键
     * @return 结果
     */
    @Override
    public int deleteTbOfflineTaskDetailLogsByIds(Long[] ids)
    {
        return tbOfflineTaskDetailLogsMapper.deleteTbOfflineTaskDetailLogsByIds(ids);
    }

    /**
     * 删除离线包任务执行日志信息
     * 
     * @param id 离线包任务执行日志主键
     * @return 结果
     */
    @Override
    public int deleteTbOfflineTaskDetailLogsById(Long id)
    {
        return tbOfflineTaskDetailLogsMapper.deleteTbOfflineTaskDetailLogsById(id);
    }
}
